package com.example.gamestore.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HomeController {

    @GetMapping("/home")
    public String home() {
        return "home";
    }

    @GetMapping("/shoppingcart")
    public String showShoppingCartPage() {
        return "shoppingcart"; // 返回 shoppingcart.html 页面
    }

    @GetMapping("/gamelist")
    public String gamelist() {
        return "gamelist"; // 返回 shoppingcart.html 页面
    }

    @GetMapping("/setting")
    public String settings() {
        return "setting";
    }



}